<template>
  <NuxtLayout>
    <NuxtPage :transition="{
        name: 'bounce',
        mode: 'out-in'
      }"></NuxtPage>
  </NuxtLayout>
</template>
<script lang="ts" setup>
const route=useRoute()
if(process.client){
if(route.params.ename){
  localStorage.setItem('eid',JSON.stringify(route.params.ename))
}
if(route.query.link){
  localStorage.setItem('link',JSON.stringify(route.query.link))
}
let eid =localStorage.getItem('eid')
let link =localStorage.getItem('link')
if(!eid||!link){
  // navigateTo('/link_2')
}
}

// 刷新不执行
// router.beforeEach((to,from)=>{
//   navigateTo('/link_1')
// })
</script>
<style>
.bounce-enter-active,
.bounce-leave-active {
  transition: all 0.2s;
}
.bounce-enter-from,
.bounce-leave-to {
  filter: grayscale(1);
    opacity: 0;
  filter: blur(1rem);
}
</style>